package com.SpringJavaBasedAnnotation_HelloWorld;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class JavaBased_Main {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(JavaBased_HelloWorldConfig.class);
        JavaBased_HelloWorld helloWorld = context.getBean(JavaBased_HelloWorld.class);
        helloWorld.setMessage("Hello World!");
        helloWorld.getMessage();
    }
}
